 package tools;

 import client.status.MonsterStatus;
 import client.status.MonsterStatusEffect;















 public class PairMonster
   implements Comparable<PairMonster>
 {
   private static final long serialVersionUID = 9179541993413738569L;
   public final MonsterStatus left;
   public final MonsterStatusEffect right;

   public PairMonster(MonsterStatus left, MonsterStatusEffect right) {
/*  28 */     this.left = left;
/*  29 */     this.right = right;
   }

   public static <MonsterStatus, MonsterStatusEffect> Pair<MonsterStatus, MonsterStatusEffect> Create(MonsterStatus left, MonsterStatusEffect right) {
/*  33 */     return new Pair<>(left, right);
   }






   public MonsterStatus getLeft() {
/*  42 */     return this.left;
   }






   public MonsterStatusEffect getRight() {
/*  51 */     return this.right;
   }







   public String toString() {
/*  61 */     return this.left.toString() + ":" + this.right.toString();
   }





   public int hashCode() {
/*  69 */     int prime = 31;
/*  70 */     int result = 1;
/*  71 */     result = prime * result + ((this.left == null) ? 0 : this.left.hashCode());
/*  72 */     result = prime * result + ((this.right == null) ? 0 : this.right.hashCode());
/*  73 */     return result;
   }





   public boolean equals(Object obj) {
/*  81 */     if (this == obj) {
/*  82 */       return true;
     }
/*  84 */     if (obj == null) {
/*  85 */       return false;
     }
/*  87 */     if (getClass() != obj.getClass()) {
/*  88 */       return false;
     }
/*  90 */     Pair other = (Pair)obj;
/*  91 */     if (this.left == null) {
/*  92 */       if (other.left != null) {
/*  93 */         return false;
       }
/*  95 */     } else if (!this.left.equals(other.left)) {
/*  96 */       return false;
     }
/*  98 */     if (this.right == null) {
/*  99 */       if (other.right != null) {
/* 100 */         return false;
       }
/* 102 */     } else if (!this.right.equals(other.right)) {
/* 103 */       return false;
     }
/* 105 */     return true;
   }

   public Integer getOrder() {
/* 109 */     return Integer.valueOf(this.left.getPosition());
   }



   public void setOrder(Integer order) {}


   public int compareTo(PairMonster o) {
/* 118 */     return getOrder().compareTo(Integer.valueOf(o.getLeft().getPosition()));
   }
 }


/* Location:              C:\PGX\Server.jar!\tools\PairMonster.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */